<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/11/28
 * Time: 14:29
 */
namespace app\index\controller;

use app\common\controller\Jd;
use app\common\model\JdGoods;
use app\common\model\OrderTbk;
use think\Controller;
use think\Db;

class Task extends Controller{
	/**
	 * 刷新阿里妈妈登录后的页面，防止超时退出
	 * @return mixed
	 */
	public function refreshAlimama(){
		$urls = [
			'https://www.alimama.com/index.htm',
			'https://pub.alimama.com/?spm=a2320.7388781.a214tr8.d006.6f372030jbX7rl?',
			'http://open.taobao.com/api.htm?docId=24515&docType=2',
			'https://pub.alimama.com/promo/search/index.htm?spm=a219t.7900221/1.1998910419.de727cf05.67ed75a5vrcIHG&toPage=1&queryType=2'
		];
		$url = $urls[rand(0, count($urls) -1 )];
		
		return $this->fetch('refresh_alimama', [
			'url'=> $url
		]);
	}
	
}